package com.hx.xiao.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hx.xiao.entity.Taol;
import com.hx.xiao.entity.Users;
import com.hx.xiao.mapper.TaolMapper;
import com.hx.xiao.mapper.UsersMapper;
import com.hx.xiao.service.ITaolService;
import com.hx.xiao.service.IUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TaolServiceImpl extends ServiceImpl<TaolMapper, Taol> implements ITaolService {

    @Autowired
    private TaolMapper taolMapper;


    @Override
    public List<Taol> findById(Integer id) {
        return taolMapper.findById(id);
    }

    @Override
    public int insertById(Taol taol) {
        return taolMapper.insertById(taol);
    }

    @Override
    public List<Taol> findAll() {
        return taolMapper.findAll();
    }

    @Override
    public Taol findBy(Integer id) {
        return taolMapper.findBy(id);
    }

    @Override
    public int deleteById(Integer id) {
        return taolMapper.deleteById(id);
    }

    @Override
    public int updateB(Taol taol) {
        return taolMapper.updateBy(taol);
    }


}
